All access to the Z800 device is mangaged through the opaque structure z800\_\-device which contains all connection-\/related state. A pointer to such structure can be obtained by calling \hyperlink{libz800_8h_a25acff106ab0ebc5285d46098e5ff6b5}{z800\_\-connect()}.

Example: 
\begin{DoxyCode}
        z800_device *dev = z800_connect(2);
        if(dev == NULL)
        {
                fprintf(stderr, "z800_connect() failed");
        }
        else
        {
                fprintf(stderr, "z800_connect() succeeded");
                z800_disconnect(dev);
        }
\end{DoxyCode}


After connection is established the debug level can be changed using \hyperlink{libz800_8h_ac45cc94dcaee65af97ed0b6ef1dabd9f}{z800\_\-set\_\-debug\_\-level()}. 